<template>
    <div class="footer1">
      <div :class="{tel:true,tel1:type=='details'?true:false}" @click="call">电话沟通</div>
      <!-- <div class="jian" @click="send" v-if="type=='details'?false:true">投递简历</div> -->
    </div>
</template>

<script>
export default {
  props:['tel','id','type'],
	data () {
    return {

    }
  },
  computed:{

  },
  methods:{
    async send(){
      var userToken=window.localStorage.getItem('userToken')
      let res=await this.$axios.post('/ucenter/sendResume',{user_token:userToken,id:this.id})
      if(res.data.level=='success'){
        this.$currency.showToast(res.data.message,1000,"success")
      }else{
        this.$currency.showToast(res.data.message,1000,"fail")
      }
    },
    call(){
      // wx.makePhoneCall({
      //   phoneNumber:this.tel
      // })
      // console.log(this.tel)
      window.location.href=`tel://${this.tel}`
    }
  }
}
</script>

<style scoped>
.footer1{width: 100%;height: 70px;background-color: #FFFFFF;position: fixed;left: 0;bottom: 0;    box-shadow: 0px 0px 7px #cccccc;display:flex;justify-content: center}
.footer1 div{width: 112px;height: 47px;float: left;line-height: 47px;text-align: center;margin-top: 11.5px;font-size: 18px;    border-radius: 5px;}
.tel{color: #4ba1ee;border: 1px #4ba1ee solid;background: #f4faff;}
/* .tel1{margin: 11.5px 130.5px;} */

.jian{  border: 1px #4ba1ee solid;background: #4ba1ee;color: #fff;margin-left:25px;}
</style>
